//隔行换色
var G = function(id){return document.getElementById(id)}
var EACH = function(o,fn){for(var i=0;i<o.length;i++){fn.call(o[i],i,o); if(i==o.length-1) return o}}
var _2009_ = function(){this.init.apply(this,arguments)};
_2009_.prototype={
 init:function(o){
  EACH(G(o.id).rows,function(i,O){i%2== +!!o.parity ? this.style.background = o.cor1:'';
   this['color'] = this.style.background;
   this.onmouseover = function(){this.style.background = o.cor2}
   this.onmouseout = function(){this.style.background = this['color']}
  })
 }
};
new _2009_({id:'changecolor',cor1:'#f7f7f7',cor2:'#ecfbd4'});

